package object1;

/**
 * @Author:Cjj
 * 技能类
 */
public class Hero {
    String name;
    String skill_q;//技能
    String skill_w;
    String skill_e;
    String skill_r;

    public Hero(String name) {
        this.name = name;
    }

    public Hero(String name, String skill_q, String skill_w, String skill_e, String skill_r) {
        this(name);
        this.skill_q = skill_q;
        this.skill_w = skill_w;
        this.skill_e = skill_e;
        this.skill_r = skill_r;
    }

    public void fight() {
        System.out.println(this.name + "正在打怪兽");
    }
}
